﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace BizzCore
{
    [Table("Messages")]
    public class MessageEntity
    {
        [Key]
        public int Id { get; set; }

        [MaxLength(255)]
        public string Title { get; set; }

        public virtual List<MessageAttributeEntity> Attributes { get; set; }

        [MaxLength(255)]
        public string Inbox { get; set; }

        [MaxLength(255)]
        public string InboxType { get; set; }

        public virtual List<OutboxEntity> Ouboxes { get; set; }


        public virtual List<RuleMatchedEntity> RulesMatched { get; set; }

        public DateTime MsgDate { get; set; }

        


    }
}
